//
//  RegisterAgreementViewController.m
//  Student
//
//  Created by 李飞 on 15/9/9.
//  Copyright (c) 2015年 XueYinYue. All rights reserved.
//

#import "RegisterAgreementViewController.h"

@interface RegisterAgreementViewController ()

@end

@implementation RegisterAgreementViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initNavegationBar];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
#pragma mark -NavegationBar
- (void)initNavegationBar
{
    
    //    UIButton *backBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    //    backBtn.bounds = CGRectMake(0, 0, 15, 20);
    //    [backBtn addTarget:self action:@selector(onBackButtonClick:) forControlEvents:UIControlEventTouchUpInside];
    //    [backBtn setBackgroundImage:[UIImage imageNamed:NAVIGATION_BACKARROW_IMAGE] forState:UIControlStateNormal];
    
    UIBarButtonItem *backBarBtn = [[UIBarButtonItem alloc] initWithTitle:@"返回" style:UIBarButtonItemStylePlain target:self action:@selector(onBackButtonClick:)];
    self.navigationItem.leftBarButtonItem = backBarBtn;
}


- (void)onBackButtonClick:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}


@end
